/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.allerj.gui.action;

import it.allerj.analysis.TestAnalysis;
import java.awt.image.BufferedImage;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Alessandro Veracchi
 */
public class ModelConnector {

    public void connect(BufferedImage image) {        
        try {
            TestAnalysis.test(image);
            /*FilmAnalyzer analyzer = new FilmAnalyzer(image, 9, 9);
            analyzer.process();
            FrameConfiguration frameConf = DemoMatrix.getFrameConfiguration();
            for(int i = 1; i<frameConf.getHeight(); i++){
               for(int j = 0; j<frameConf.getWidth(); j++){
                DotMark dotMark = analyzer.getSamplingMarker(i, j);
                if(dotMark!=null){
                    System.out.println("dotMark.getArea() "+dotMark.getArea());
                } else {
                    System.out.println("dotMark.getArea() "+dotMark);
                }
               }  
            }*/
        } catch (Exception ex) {
            Logger.getLogger(ModelConnector.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}

